<template>
    <view>
        <!-- pages/center/profile.wxml -->
        <!-- <header name="个人信息" type="1"></header> -->
       
        <view class="list">
            <text class="title">真实姓名</text>
            <view>
                <input type="text" v-model="inputdata.name" placeholder="请输入真实姓名"/>
                <!-- <image src="/static/next.png" mode="aspectFit"></image> -->
            </view>
        </view>
        <view class="list">
            <text class="title">身份证号</text>
            <view>
                <input type="text" v-model="inputdata.card" placeholder="请输入正确身份证号" />
                <!-- <image src="/static/next.png" mode="aspectFit"></image> -->
            </view>
        </view>
      
        <view class="btns" @tap="submit">保存</view>
    </view>
</template>

<script>
	export default {
		data() {
			return {
			    inputdata: {
			        headimgurl: '',
			        nickname: '',
			        phone: ''
			    },
			
			    count: 0,
			    isipx: '',
				uploadurl:''
			};
		},
		methods: {
			submit(){
				var that = this;
				that.$http('app/center/upshiming',that.inputdata,function(res){
					if(res.code===0){
						uni.showToast({
							title:'认证成功'
						})
						uni.navigateBack({
						    delta: 1
						});
					}else{
						uni.showToast({
							title:res.msg,
							icon:'none'
						})
					}
				})
			}
		}
	}
</script>
<style lang="scss"> 
@import 'main.scss';
@import '../profile.scss';
</style>
